package com.example.springboot.utils;

import com.example.springboot.config.applicationContextNameAware.SpringContextHolder;
import com.example.springboot.mapper.DepartmentMapper;

/**
 * @Author:ChenZhangKun
 * @Date: 2021/4/12 10:13
 */
public class ApplicationUtils {
    public static DepartmentMapper get() {
        return (DepartmentMapper) SpringContextHolder.getBean("departmentMapper", DepartmentMapper.class);
    }
}
